using System;

namespace RapidHDL
{
	/// <summary>
	/// Summary description for TruthTableCoordinator.
	/// </summary>
	public class TruthTableCoordinator
	{
		System.Collections.Hashtable oTruthTables;

		public TruthTableCoordinator()
		{
			oTruthTables = new System.Collections.Hashtable();
		}

		public TruthTable GetTruthTable(string psName)
		{
			if (oTruthTables.ContainsKey(psName.ToUpper()))
				return (TruthTable)oTruthTables[psName.ToUpper()];
			else
				return null;
		}

		void CacheTruthTable(string psName, TruthTable poTruthTable)
		{
			oTruthTables.Add(psName,poTruthTable);
		}
	}
}
